//package com.common.db;
//
//import java.sql.SQLException;
//
//import javax.sql.DataSource;
//
//import org.apache.commons.dbutils.QueryRunner;
//
//import com.alibaba.druid.pool.DruidPooledConnection;
//
//public class DBUtilsHelper {
//	private DataSource ds = null;
//	private QueryRunner runner = null;
//	private DruidPooledConnection druidPooledConnection = null;
//
//	public DBUtilsHelper() {
//		try {
//			this.ds = DbPoolConnection.getInstance().getDataSource();
//		} catch (SQLException e) {
//			e.printStackTrace();
//		}
//		if (this.ds != null) {
//			this.runner = new QueryRunner(this.ds);
//		}
//	}
//
//	public DBUtilsHelper(String corp) {
////		try {
////			if (corp.equals("rl")) {
////				this.ds = DbPoolConnection1.getInstance().getDataSource();
////			}
////			else if (corp.equals("back_hk")) {
////				this.ds = DbPoolConnection_Back_hk.getInstance().getDataSource();
////			}
////			else if (corp.equals("back_rl")) {
////				this.ds = DbPoolConnection_Back_rl.getInstance().getDataSource();
////			}
////			else if (corp.equals("zc_hk")) {
////				this.ds = DbPoolConnection_zchk.getInstance().getDataSource();
////			}
////			else if (corp.equals("zc_rl")) {
////				this.ds = DbPoolConnection_zcrl.getInstance().getDataSource();
////			}
////		} catch (SQLException e) {
////			e.printStackTrace();
////		}
//		if (this.ds != null) {
//			this.runner = new QueryRunner(this.ds);
//		}
//	}
//
////	public DBUtilsHelper(DataSource ds) {
////		this.ds = ds;
////		this.runner = new QueryRunner(this.ds);
////	}
//
//	public QueryRunner getRunner() {
//		return this.runner;
//	}
//
//	public DruidPooledConnection getConnection() throws SQLException {
//		this.druidPooledConnection = DbPoolConnection.getConnection();
//		return this.druidPooledConnection;
//	}
//}
